import { getRequest, postRequest, putRequest, deleteRequest } from '/src/lib/axios';
import { localRead } from '/@/utils/local-util';
import LocalStorageKeyConst from '/@/constants/local-storage-key-const.js';
const token = localRead(LocalStorageKeyConst.WVP_TOKEN);
const baseUrl = "/wvpApi/ptz"

export const api = {
  // 增加
  ptzCommand: (param) => {
    return postRequest({
      url: baseUrl + '/control/' + param.url,
      params: {
        command: param.command,
        horizonSpeed: 80,
        verticalSpeed: 80,
        zoomSpeed: 80,
      },
      header: {
        "access-token": token
      }
    });
  },

};
